#include "circle.h"
#include <math.h>

//Funciones de la Clase 


Circle::Circle():m_center(),m_radio(0.0)
{
}

Circle::Circle(const Vector2 vector,const REAL radio):m_center(vector),m_radio(radio)
{
}

Circle:: Circle(const Circle &c):m_center(c.m_center),m_radio(c.m_radio)
{
}

Vector2 Circle::getCenter()const
{
 return m_center;
}

REAL Circle::getRadio()const
{
  return m_radio;
}

void Circle::setRadio(const REAL radio)
{
  if(radio > 0)
  {
  m_radio = radio;
  }
}

void Circle::setCenter(const Vector2 center)
{
 m_center = center;
}

REAL Circle::perimeter()const
{
  return 2 * M_PI * m_radio;
}

REAL Circle::area ()const
{
  return M_PI *pow(m_radio,2);
}

